package recipie.core;

import java.util.HashMap;
import java.util.LinkedList;

public class Recipe 
{
	private String name;
	private int difficulty;
	private boolean prototype;
	private int serving;
	private String source;
	private LinkedList<String> ingredients;//Ingredients must be already present
	private LinkedList<String> subRecipes;//Subrecipes must be already present
	private LinkedList<Step> steps;//Ignored for the first release
	private HashMap<String,Integer> quantities;//ingredient name -> his quantity in this recipe
	

	public Recipe(String nam, int diff, boolean prot, int serv, String sourc,
			LinkedList<String> ingred, LinkedList<String> subrec,
			LinkedList<Step> ste, HashMap<String,Integer> quant)
	{
	  name = nam;
	  difficulty = diff;
	  prototype = prot;
	  serving = serv;
	  source = sourc;
	  ingredients = ingred;
	  subRecipes = subrec;
	  steps = ste;
	  quantities = quant;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public int getDifficulty() {
		return difficulty;
	}
	
	public boolean getPrototype() {
		return prototype;
	}
	
	public int getServing() {
		return serving;
	}
	
	public String getSource() {
		return source;
	}
	
	public LinkedList<String> getSubRecipes() {
		return subRecipes;
	}
	
	public void setSubRecipes(LinkedList<String> sub) {
		subRecipes = sub;
	}
	
	public HashMap<String,Integer> getIngredientsQuantities() {
		return quantities;
	}
	
	public void setIngredientsQuantities(HashMap<String,Integer> quantities) {
		this.quantities = quantities;
	}
	
	public LinkedList<String> getIngredients()
	{
	  return ingredients;
	}
	
	public void setIngredients(LinkedList<String> ingredients)
	{
	  this.ingredients = ingredients;
	}
}
